#import <UIKit/UIKit.h>
#import "CoinCount.h"
#import "coinGameViewController.h"

@interface CoinGame : UIViewController {
	//question and answer display
	IBOutlet id displayField;
	IBOutlet id displayField2;
	
	//display number of coin
	IBOutlet id pDisplay;
	IBOutlet id nDisplay;
	IBOutlet id dDisplay;
	IBOutlet id qDisplay;
	IBOutlet id lDisplay;
	IBOutlet id tDisplay;
	
	//display time
	IBOutlet id timeDisplay;
	CoinCount *current;  //make a 'currnet' object
	NSTimer *myTimer; //make a timer
	NSTimer *myTimer2; //make a timer
	
	float timeLeft; //for keeping track of time
	int score;//keeping track of score
	bool playing;//whether a game started or not
	int M; //mode it currently in
	int D; //diffcuilty it currently in
	int life; //life left for survical game 
	float speed; //current speed of game
	float value; //question
	int delayAmount;
	int P;
	bool paused;//whether a game started or not
	bool stoppage;//whether a game started or not
	bool goNext;
	
	
}

@property float timeLeft;
@property int score;
@property bool playing;
@property int M;
@property float speed;
@property float value;
@property int life;
@property int D;
@property int P;
@property bool paused;
@property bool stoppage;
@property int delayAmount;
@property bool goNext;


//class to keep track of coins
-(IBAction)coin:(id)sender;


-(IBAction)getAnswer:(id)sender; //used to check answer
-(IBAction)starGame:(id)sender;//use to start game
-(IBAction)checkMode; //old test code for keeping track of mode, button has been removed
-(void)setMode:(int)input;// set mode, used by "CoinGameViewController.m" class
-(IBAction)back:(id)sender; //used to go back

-(void)nextQ:(int)level; //use to get next question
-(void)timeControl:(int)startStop; //use to start, stop, and speed up time
-(void)delaying:(int)goDelayFor;
-(void)waiting;

-(IBAction)pause:(id)sender;





@end


